import micro86.engine.Memory;
import micro86.engine.ParseException;
import micro86.engine.Processor;
import micro86.engine.State;
import micro86.operation.IOperation;

import java.io.File;
import java.util.List;

public class Main {
    public static void main(String[] args) {
        String filePath = new File("./files/command.txt").getAbsolutePath();
        State state = new State();
        Memory memory = new Memory();
        try {
            List<IOperation> list = Loader.processFile(filePath);
            Processor processor = new Processor(state, memory, list);
            processor.run();
        } catch (ParseException e) {
            System.out.print(e);
        }

        int a = 2;
        int b = 3;
        int x;
        x = a +++ b;
        System.out.println();
        System.out.println("x = " + x);
        System.out.println("a = " + a);

    }
}
